<!DOCTYPE html>
<html lang="en">
<!--head block-->
<head>

    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
          integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">

    <!-- Custom styles for this template -->
    <link rel="stylesheet" type="text/css" href="static/css/style.css">
    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="static/js/jquery-3.5.1.min.js"
            crossorigin="anonymous"></script>
    <script src="static/js/popper.min.js"
            crossorigin="anonymous"></script>
    <script src="static/js/bootstrap.min.js"
            crossorigin="anonymous"></script>
    <script src="static/js/healthIndex.js"></script>

    <title>Heath Index Test</title>
</head>
<!--head block ends-->


<body>
<header>

    <nav class="navbar navbar-expand-md fixed-top navbar-dark bg-dark">
        <div class="navbar-collapse collapse w-100 order-1 order-md-0 dual-collapse2">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item">
                    <a class="nav-link" href="index.php">Home Page</a>
                </li>
            </ul>
        </div>
        <div class="mx-auto order-0">
            <a class="navbar-brand mx-auto" href="/">Health Index Test</a>
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".dual-collapse2">
                <span class="navbar-toggler-icon"></span>
            </button>
        </div>
        <div class="navbar-collapse collapse w-100 order-3 dual-collapse2">

            <ul class="navbar-nav ml-auto">

                <li class="nav-item">
                    <p class="navbar-text">
                        <span class=" text-white font-weight-bold">A Health Index Test</span>
                    </p>
                </li>
            </ul>
        </div>
    </nav>
</header>
<!-- Begin THIS page content -->
<main role="main" class="container">
    <div class="container w-auto">
        <h1 class="center">Start Your Health Index Test</h1>
        <div class="container">
            <form>
                <div class="form-group row">
                    <label class="col-sm-2 col-form-label">Gender</label>
                    <div class="col-sm-10 myRadio">
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="genderRadioOptions" id="female"
                                   value="1">
                            <label class="form-check-label" for="female">Female</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="genderRadioOptions" id="male" value="2">
                            <label class="form-check-label" for="male">Male</label>
                        </div>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-form-label myLabel" for="inputWeight">Your Weight:(kg)</label>
                    <div class="d-flex justify-content-center my-4 form-group col-sm-10">
                        <div class="w-75">
                            <input type="range" class="custom-range" id="inputWeight" min="0" max="200">
                        </div>
                        <span id="weightSpan" class="font-weight-bold text-primary ml-2"></span>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2 col-form-label myLabel" for="inputHeight">Your Height:(cm)</label>
                    <div class="d-flex justify-content-center my-4 form-group col-sm-10">
                        <div class="w-75">
                            <input type="range" class="custom-range" id="inputHeight" min="0" max="250">
                        </div>
                        <span id="heightSpan" class="font-weight-bold text-primary ml-2"></span>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-form-label">Your Life Style</label>
                    <div class="col-sm-10 myRadio">
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="lifeHabit" value=1>
                            <label class="form-check-label">Regular Habit</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="lifeHabit" value=2>
                            <label class="form-check-label">Irregular habit</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="lifeHabit" value=3>
                            <label class="form-check-label">Frequently stay up late</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="lifeHabit" value=4>
                            <label class="form-check-label">None</label>
                        </div>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-form-label">Meal Habit</label>
                    <div class="col-sm-10 myRadio">
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="mealHabit" value=1>
                            <label class="form-check-label">No lunch</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="mealHabit" value=2>
                            <label class="form-check-label">No supper</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="mealHabit" value=3>
                            <label class="form-check-label">Irregular meal time</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="mealHabit" value=4>
                            <label class="form-check-label">Supper after 8 pm</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="mealHabit" value=5>
                            <label class="form-check-label">Midnight snacks</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="mealHabit" value=6>
                            <label class="form-check-label">None</label>
                        </div>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-form-label">How full is your meal</label>
                    <div class="col-sm-10 myRadio">
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="mealFullness" value="1">
                            <label class="form-check-label">Easy to get hungry</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="mealFullness" value="2">
                            <label class="form-check-label">Eat very fast</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="mealFullness" value="3">
                            <label class="form-check-label">Not focus when eating</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="mealFullness" value="4">
                            <label class="form-check-label">Full 20 min after finish</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="mealFullness" value="5">
                            <label class="form-check-label">None</label>
                        </div>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-form-label">Grains Intake</label>
                    <div class="col-sm-10 myRadio">
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="grainsIntake" value="1">
                            <label class="form-check-label">Almost none</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="grainsIntake" value="2">
                            <label class="form-check-label">1-3 clenched fist size</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="grainsIntake" value="3">
                            <label class="form-check-label">3-6 clenched fist size</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="grainsIntake" value="4">
                            <label class="form-check-label">6-9 clenched fist size</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="grainsIntake" value="5">
                            <label class="form-check-label">9 clenched fist size above</label>
                        </div>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-form-label">Vegetables Intake</label>
                    <div class="col-sm-10 myRadio">
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="vegeIntake" value="1">
                            <label class="form-check-label">Almost none</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="vegeIntake" value="2">
                            <label class="form-check-label">1-2 clenched fist size</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="vegeIntake" value="3">
                            <label class="form-check-label">2-4 clenched fist size</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="vegeIntake" value="4">
                            <label class="form-check-label">4 clenched fist size above</label>
                        </div>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-form-label">Protein Intake</label>
                    <div class="col-sm-10 myRadio">
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="proteinIntake" value="1">
                            <label class="form-check-label">Almost none</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="proteinIntake" value="2">
                            <label class="form-check-label">1 clenched fist size</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="proteinIntake" value="3">
                            <label class="form-check-label">1-3 clenched fist size</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="proteinIntake" value="4">
                            <label class="form-check-label">3 clenched fist size above</label>
                        </div>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-form-label">Fruit Intake</label>
                    <div class="col-sm-10 myRadio">
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="fruitIntake" value="1">
                            <label class="form-check-label">Almost none</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="fruitIntake" value="2">
                            <label class="form-check-label">1 clenched fist size</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="fruitIntake" value="3">
                            <label class="form-check-label">1-3 clenched fist size</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="fruitIntake" value="4">
                            <label class="form-check-label">3-5 clenched fist size</label>
                        </div>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-form-label">Water Intake</label>
                    <div class="col-sm-10 myRadio">
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="waterIntake" value="1">
                            <label class="form-check-label">Almost none</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="waterIntake" value="2">
                            <label class="form-check-label">1-6 cup</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="waterIntake" value="3">
                            <label class="form-check-label">6-12 cup</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="waterIntake" value="4">
                            <label class="form-check-label">12 cup above</label>
                        </div>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-form-label">Do you eat junk food</label>
                    <div class="col-sm-10 myRadio">
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="junkIntake" value="1">
                            <label class="form-check-label">Fried chicken</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="junkIntake" value="2">
                            <label class="form-check-label">Fried chips</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="junkIntake" value="3">
                            <label class="form-check-label">Sugar Drinks</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="junkIntake" value="4">
                            <label class="form-check-label">None above</label>
                        </div>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-form-label">Low intense Training per week</label>
                    <div class="col-sm-10 myRadio">
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="LIT" value="1">
                            <label class="form-check-label">Almost None</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="LIT" value="2">
                            <label class="form-check-label">1-2</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="LIT" value="3">
                            <label class="form-check-label">3-4</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="LIT" value="4">
                            <label class="form-check-label">5-7</label>
                        </div>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-form-label">Moderate intense Training per week</label>
                    <div class="col-sm-10 myRadio">
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="MIT" value="1">
                            <label class="form-check-label">Almost None</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="MIT" value="2">
                            <label class="form-check-label">1-2</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="MIT" value="3">
                            <label class="form-check-label">3-4</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="MIT" value="4">
                            <label class="form-check-label">5-7</label>
                        </div>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-form-label">High intense Training per week</label>
                    <div class="col-sm-10 myRadio">
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="HIT" value="1">
                            <label class="form-check-label">Almost None</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="HIT" value="2">
                            <label class="form-check-label">1-2</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="HIT" value="3">
                            <label class="form-check-label">3-4</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="HIT" value="4">
                            <label class="form-check-label">5-7</label>
                        </div>
                    </div>
                </div>
                <div class="col text-center">
                    <button type="button" id="btnSubmit" class="btn btn-primary text-center"
                            data-toggle="modal" data-target="#exampleModal">Check Result
                    </button>
                </div>

            </form>
        </div>


        <!-- Modal -->
        <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <h5 class="modal-title" id="exampleModalLabel">Health Index Result</h5>
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                    </div>
                    <div class="modal-body">
                        <h3>Health Index</h3>
                        <p id="healthIndex">
                        </p>
                        <h3>Train Advice</h3>
                        <p id="trainAdvice">
                        </p>
                        <h3>Nutrition Advice</h3>
                        <p id="nutritionAdvice">
                        </p>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                        <button type="button" class="btn btn-primary">Save changes</button>
                    </div>
                </div>
            </div>
        </div>

    </div>


</main>
<!-- End THIS page content -->

<!-- Footer is located in common.html -->
<footer class="footer">
    <div id="footer">
        <div class="container center">
            <span class="text-muted">Heath Index</span>
        </div>

    </div>
</footer>

</body>
</html>